#ifndef _adc_h_
#define _adc_h_


#include "stm32f10x.h"

typedef struct
{
    uint16_t adc;
    float voltage;
}AdcValue;

#include "stm32f10x.h"

void AdcInit(void);
void VoltageDetect(void);

extern AdcValue bat;


#endif


